<template>
    <div>
        <button @click="hanldeClick">点击</button>
        <slot name="son" :count="count"></slot>
    </div>
</template>

<script setup>
import { ref } from "vue";
const count = ref(0);
function hanldeClick() {
    count.value++;
}
</script>

<style lang="less" scoped>
@buttonHeight: 30px;
@buttonWidth: 80px;
button {
    height: @buttonHeight;
    width: @buttonWidth;
}
</style>
